<div id="form_leave">
	<div class="pc-nav form-nav">
		<button @click="back(-1)"><i class="icon iconfont">&#xe62b;</i></button>
		<span>出差</span>
	</div>
	<form-repeat class="approval-form-repeat approval-form-wrap" v-on:getrepeat="repeatFn" init='[{"name":"出差地点","value":""},{"name":"开始时间","value":""},{"name":"结束时间","value":""}]'>
		 <template slot-scope="props">
			<li>
				<em class="left"><span style="color: red;">*</span>出差地点</em>
				<i class="right">
					<input  v-model="props.o[0].value" type="text" placeholder="如：北京、上海 (必填)" />
				</i>
			</li>
			<li v-if="subFlag && /^\s*$/g.test(props.o[0].value)">
				<em class="left"></em>
				<i class="right">
					<p style="color: red;" data-false='true'>出差地点不能为空</p>
				</i>
			</li>
			<li>
				<em class="left"><span style="color: red;">*</span>开始时间</em>
				<i class="icon  right">
					<span class="datepicker">
						<vue-datepicker-local v-model="props.o[1].value" ></vue-datepicker-local>
					</span>
				</i>
			</li>
			<li>
				<em class="left"><span style="color: red;">*</span>结束时间</em>
				<i class="icon  right">
					<span class="datepicker">
						<vue-datepicker-local v-model="props.o[2].value"></vue-datepicker-local>
					</span>
				</i>
			</li>
			<li v-if="subFlag &&(/^\s*$/g.test(props.o[1].value)||/^\s*$/g.test(props.o[2].value) )">
				<em class="left"></em>
				<i class="right">
					<p style="color: red;" data-false='true'>开始时间或结束时间不能为空</p>
				</i>
			</li>
		</template>
	</form-repeat>
	<ul class="approval-form-wrap">
		
		<li>
			<em class="left">出差天数</em>
			<i class="right">
				<input v-model="submitJson.component[0].value" type="text" placeholder="请输入出差天数" />
			</i>
		</li>
		<li>
			<em class="left">出差事由</em>
			<i class="right">
				<textarea name="" rows="" v-model="submitJson.component[1].value" cols="" placeholder="请输入出差事由"></textarea>
			</i>
		</li>
		<li>
			<em class="left">图片</em>
			<i class="right">
				<upload_tpl message="img" name="图片" v-on:getfile="getFilefn"></upload_tpl>
			</i>
		</li>
		<li>
			<em class="left">审批人</em>
			<i class="right">
				<dingding_users  v-on:getdingdinguser="getApproveUsers" message="approve" :approve_list="approve_list" :cc_list="cc_list" ></dingding_users>
			</i>
		</li>
		<li>
			<em class="left">抄送人</em>
			<i class="right">
				  <dingding_users v-on:getdingdinguser="getCopyUsers" :approve_list="approve_list" :cc_list="cc_list" message="cc"></dingding_users>
			</i>
		</li>
		<li>
			<em class="left"></em>
			<i class="right">
				  <span v-if="subFlag"></span>
				 <button class="submit-foot" @click="submitFn">提交</button>
			</i>
		</li>
	</ul>
		
</div>
